﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WinVerificationService.Helpers
{
    /// <summary>
    /// For analyzing alerts for users
    /// </summary>
    public static class AlertsAnalyzer
    {
        /// <summary>
        /// Loads alerts for specefied user
        /// </summary>
        /// <param name="username">Username to look for</param>
        /// <param name="_alertsServiceClient">Service client reference</param>
        /// <returns>List of base alerts</returns>
        internal static List<WinVerificationService.AlertsService.BaseAlert> LookForAlerts(string username, WinVerificationService.AlertsService.GlobalAlertsServiceClient _alertsServiceClient)
        {
           return _alertsServiceClient.GetAlerts(username).ToList();
        }
    }
}
